package exception;

public class ExceptionApiDemo {
    public static void main(String[] args) {

        try {
            String str = "abc";
            int d = Integer.parseInt(str);
        }catch (NumberFormatException e){
            e.printStackTrace();
            String message = e.getMessage();
            System.out.println(message);
        }


    }
}
